import 'package:flutter/material.dart';
import 'package:flutter_mode/zjw/widget/muti/CustomMultiChildLayout.dart';
import 'package:flutter_mode/zjw/widget/muti/Flow.dart';
import 'package:flutter_mode/zjw/widget/muti/GridView.dart';
import 'package:flutter_mode/zjw/widget/muti/IndexedStack.dart';
import 'package:flutter_mode/zjw/widget/muti/ListBody.dart';
import 'package:flutter_mode/zjw/widget/muti/ListView.dart';
import 'package:flutter_mode/zjw/widget/muti/Row.dart';
import 'package:flutter_mode/zjw/widget/muti/Stack.dart';
import 'package:flutter_mode/zjw/widget/muti/Table.dart';
import 'package:flutter_mode/zjw/widget/muti/Wrap.dart';

class MutiWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    Widget list = ListView(
      children: <Widget>[
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => RowWidget()));
            },
            child: new Text('Row')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => StackWidget()));
            },
            child: new Text('Stack')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => IndexedStackWidget()));
            },
            child: new Text('IndexedStack')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => GridViewWidget()));
            },
            child: new Text('GridView')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => FlowWidget()));
            },
            child: new Text('Flow')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => TableWidget()));
            },
            child: new Text('Table')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => WrapWidget()));
            },
            child: new Text('Wrap')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => ListBodyWidget()));
            },
            child: new Text('ListBody')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(context,
                  MaterialPageRoute(builder: (context) => ListViewWidget()));
            },
            child: new Text('ListView')),
        new ElevatedButton(
            onPressed: () {
              Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) => CustomMultiChildLayoutWidget()));
            },
            child: new Text('CustomMultiChildLayout')),
      ],
    );
    return Scaffold(
      appBar: new AppBar(
        title: new Text('多节点控件'),
        leading: new BackButton(),
      ),
      body: list,
    );
  }
}
